#ifndef COLORSELECTOR_H
#define COLORSELECTOR_H

#include <QWidget>
#include "palette.h"

class ColorSelector : public QWidget
{
Q_OBJECT

public:
	ColorSelector(Palette::paletteType t, QWidget* parent = 0, Qt::WindowFlags f = 0);
	~ColorSelector();

public slots:
	void layerSet(quint16 c);
	void setColorMap(ColorCW::ColorMap* colorMap, quint16 cmCnt);

signals:
	void currItemChanged(quint16 c);

private:
	Palette* p;
};

#endif // COLORSELECTOR_H
